package com.hxzy.vo;

/**
 * 统一响应枚举
 */
public enum ResultEnum {
    SUCDESS(1,"success"),
    FAILED(0,"failed"),
    DB_INSERT_FAILED(0,"数据库新增失败"),
    DB_UPDATE_FAILED(0,"数据库更新失败"),
    DB_DELETE_FAILED(0,"数据库删除失败"),
    PARAMS_FAILED(0,"参数不合法"),
    USERNAME_PASSWORD_ERROR(0,"用户名或密码错误!"),
    ACCOUNT_LOCKED(0,"该用户被禁"),
    FILE_NOT_EMPTY(0,"文件不能为空"),
    DB_SAVE_FAILED(0,"数据保存失败")
    ;

    //编号
    private int code;
    //失败信息
    private String  message;

    public void setCode(int code) {
        this.code = code;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public int getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }

    ResultEnum(int code, String message) {
        this.code = code;
        this.message = message;
    }


}
